import request from '@/utils/request'


export function list(query) {
  return request({
    url: '/tScript/list',
    method: 'get',
    params: query
  })
}

export function detail(id) {
  return request({
    url: '/tScript/detail/' + id,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/tScript/add',
    method: 'post',
    data: data
  })
}

export function put(data) {
  return request({
    url: '/tScript/put',
    method: 'put',
    data: data
  })
}

export function del(id) {
  return request({
    url: '/tScript/' + id,
    method: 'delete'
  })
}


export function run(query) {
  return request({
    url: '/tScript/runScript',
    method: 'get',
    params: query
  })
}
